package com.zhora.service.ai;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhora.common.domain.page.PageDataGridRespDTO;
import com.zhora.dto.ai.AiLibraryDocDTO;
import com.zhora.dto.ai.search.AiLibraryDocSearchDTO;
import com.zhora.entity.ai.AiLibraryDocEntity;

import java.util.List;

/**
 * ai文档(ai_library_doc)表服务接口
 *
 * @author zhehen.lu
 * @since 2025-09-15 17:45:03
 */
public interface IAiLibraryDocService extends IService<AiLibraryDocEntity> {

    PageDataGridRespDTO<AiLibraryDocDTO> listPage(AiLibraryDocSearchDTO searchDTO);

    void create(AiLibraryDocDTO dto);

    AiLibraryDocDTO getDetailById(Long id);

    AiLibraryDocDTO getDetail(AiLibraryDocSearchDTO searchDTO);

    void updateById(AiLibraryDocDTO dto);

    List<AiLibraryDocDTO> list(AiLibraryDocSearchDTO searchDTO);

    void removeByLibraryId(Long libraryId);

    void removeById(Long docId);
}
